package com.dalin.platform.etl.action;

import com.dalin.framework.action.StrutsTwoAction;
import com.dalin.platform.etl.service.EtlService;
import com.dalin.platform.etl.vo.EtlDatabaseInfoVo;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-11-25                                                     *
 * @modDate: 2010-11-25                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class DatabaseInfoTestConnAction extends StrutsTwoAction{
	private EtlDatabaseInfoVo vo; // 
	private EtlService etlService;
    
	public String execute() throws Exception {
    	super.printInfo("", "===== this action begin");
    	try {
    		etlService.testDatabaseConn(vo);
			setResContent(true,"连接数据库成功");
		} catch (Exception e) {
			e.printStackTrace();
		    setResContent(e);
		}
    	super.printInfo("", "===== this action end");
        return null;
    }


	public EtlDatabaseInfoVo getVo() {
		return vo;
	}
	public void setVo(EtlDatabaseInfoVo vo) {
		this.vo = vo;
	}
	public EtlService getEtlService() {
		return etlService;
	}
	public void setEtlService(EtlService etlService) {
		this.etlService = etlService;
	}
}
